﻿using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Text.Json.Serialization;
namespace BPM.Web.Shared.Data;

/// <summary>
/// 租户参数
/// </summary>
public partial class TenantOutput : BaseVM
{
    /// <summary>
    /// 主键Id
    /// </summary>
    [DisplayName("业务号")]
    [Required(ErrorMessage = "业务号不能为空")]
    [JsonPropertyName("id")]
    public long Id { get; set; }

    /// <summary>
    /// 公司名称
    /// </summary>
    [DisplayName("公司名称")]
    [JsonPropertyName("name")]
    public string? Name { get; set; }

    /// <summary>
    /// 名称
    /// </summary>
    [DisplayName("姓名")]
    [JsonPropertyName("adminName")]
    public string? AdminName { get; set; }

    /// <summary>
    /// 主机
    /// </summary>
    [DisplayName("主机")]
    [JsonPropertyName("host")]
    public string? Host { get; set; }

    /// <summary>
    /// 电子邮箱
    /// </summary>
    [DisplayName("账号(邮箱)")]
    [JsonPropertyName("email")]
    public string? Email { get; set; }

    /// <summary>
    /// 电话号码
    /// </summary>
    [DisplayName("电话")]
    [JsonPropertyName("phone")]
    public string? Phone { get; set; }

    /// <summary>
    /// 模式
    /// </summary>
    [DisplayName("模式")]
    [JsonPropertyName("schema")]
    public string? Schema { get; set; }

    /// <summary>
    /// 数据库连接
    /// </summary>
    [DisplayName("数据库连接")]
    [JsonPropertyName("connection")]
    public string? Connection { get; set; }

    /// <summary>
    /// 备注
    /// </summary>
    [DisplayName("备注")]
    [JsonPropertyName("remark")]
    public string? Remark { get; set; }

    /// <summary>
    /// 创建时间
    /// </summary>
    [DisplayName("创建时间")]
    [JsonPropertyName("createdTime")]
    public System.DateTimeOffset? CreatedTime { get; set; }

}
